<?php

namespace appcode\enum;

require_once("IEnumBaseClass.php");

class DimensionType implements IEnumBaseClass {
    const Rooms = "rooms";
    const Bathroom = "bathroom";
    const Size = "size";
    const Floor = "floor";
    const Parking = "parking";

    public static function GetArray() {
        return array(1 => self::Rooms, 2 => self::Bathroom, 3 => self::Size, 4 => self::Floor, 5 => self::Parking);
    }

    public static function GetById($id){
        return EnumBaseClassHelper::GetById(self::GetArray(), $id);
    }

    public static function GetByName($name) {
        return EnumBaseClassHelper::GetByName(self::GetArray(), $name);
    }

    public static function GetDefaultId() {
        return EnumBaseClassHelper::GetDefaultId(self::GetArray(), self::GetDefaultName());
    }

    public static function GetDefaultName() {
        return self::Rooms;
    }
}